package com.zmn.plat.persistence.interfaces.msg.receive.staff.conf;

import com.zmn.plat.model.entity.msg.receive.staff.conf.MsgReceiveStaffConf;
import com.zmn.plat.model.entity.msg.receive.staff.conf.MsgReceiveStaffConfQuery;
import com.zmn.plat.model.vo.msg.receive.staff.MsgReceiveStaffConfVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;



/**
 * 消息配置-接收信息员工配置表
 * 
 * @author linfeng
 *
 * @since 2020-05-18 14:50:14
 */
public interface MsgReceiveStaffConfDao {

    /**
     * 查询
     * @param id ID
     * @return
     */
    MsgReceiveStaffConf findByKey(Integer id);

    /**
     * 分页搜索
     * @param query 条件
     * @return 列表
     */
    List<MsgReceiveStaffConfVO> listPageByQuery(MsgReceiveStaffConfQuery query);

    /**
     * 搜索
     * @param query 条件
     * @return
     */
    List<MsgReceiveStaffConf> listByQuery(MsgReceiveStaffConfQuery query);

    /**
     * 所有数据
     * @return
     */
    List<MsgReceiveStaffConf> listAll();

    /**
     * 统计
     * @param query 条件
     * @return
     */
    Integer countByQuery(MsgReceiveStaffConfQuery query);
    /**
     * 更新
     * @param msgReceiveStaffConf
     * @return
     */
    Integer updateByKey(MsgReceiveStaffConf msgReceiveStaffConf);

    /**
     * 插入
     * @param msgReceiveStaffConf
     * @return
     */
    Integer insert(MsgReceiveStaffConf msgReceiveStaffConf);

    /**
     * 删除
     * @param id ID
     * @return
     */
    Integer deleteByKey(Integer id);
}
